package com.wang.util;

import com.wang.client.Client;

/**
 * 发送多次请求
 * Created by wang on 2017/5/3.
 */
public class RequestUtil {
    public static void oneRequest() {
        doRequest(1);
    }
    public static void tenRequest() {
        doRequest(10);
    }
    public static void fiftyRequest() {
        doRequest(50);
    }
    public static void oneHundredRequest() {
        doRequest(100);
    }

    //请求
    private static void doRequest(int num) {
        while (num-- > 0) {
            Client.sendRequest();
        }
    }


}
